﻿const languageModule = (function () {
    "use strict";

    const codes = [
        { Name: "English", Code: "en", Icon: "images/en.png" },
        { Name: "Français", Code: "fr", Icon: "images/fr.png" },
        { Name: "Dansk", Code: "da", Icon: "images/da.png" }
    ];

    let languages = {};
    languages["en"] = {};
    languages["fr"] = {};
    languages["da"] = {};

    //
    // en
    //
    languages["en"]["language"] = "Language";
    languages["en"]["help"] = "Help";
    languages["en"]["about"] = "About";
    languages["en"]["username"] = "Username";
    languages["en"]["password"] = "Password";
    languages["en"]["forgot-password"] = "Forgot Password?";
    languages["en"]["login"] = "Sign in";
    languages["en"]["valid-username"] = "Enter a valid username and password.";
    languages["en"]["wrong-credentials"] = "Wrong credentials.";
    languages["en"]["wrong-password"] = "The password is incorrect.";
    languages["en"]["submit"] = "Submit";
    languages["en"]["enter-username"] = "Enter a username.";
    languages["en"]["fp-error"] = "An error occurred while sending the email.";
    languages["en"]["fp-success"] = "An email with a new password was sent to: ";
    languages["en"]["lnk-dashboard"] = "Dashboard";
    languages["en"]["lnk-manager"] = "Manager";
    languages["en"]["lnk-designer"] = "Designer";
    languages["en"]["lnk-history"] = "History";
    languages["en"]["lnk-users"] = "Users";
    languages["en"]["lnk-profiles"] = "Profiles";
    languages["en"]["spn-logout"] = "Logout";
    languages["en"]["status-pending-label"] = "Pending";
    languages["en"]["status-running-label"] = "Running";
    languages["en"]["status-done-label"] = "Done";
    languages["en"]["status-failed-label"] = "Failed";
    languages["en"]["status-warning-label"] = "Warning";
    languages["en"]["status-disapproved-label"] = "Rejected";
    languages["en"]["status-stopped-label"] = "Stopped";
    languages["en"]["lbl-show"] = "Show";
    languages["en"]["lbl-entries"] = "entries";
    languages["en"]["spn-entries-count-label"] = "Total entries: ";
    languages["en"]["lbl-from"] = "from";
    languages["en"]["lbl-to"] = "to";
    languages["en"]["btn-search"] = "Search";
    languages["en"]["new-user-action"] = "New user";
    languages["en"]["save-action"] = "Save";
    languages["en"]["delete-action"] = "Delete";
    languages["en"]["tr-createdOn-label"] = "Created on";
    languages["en"]["tr-modifiedOn-label"] = "Modified on";
    languages["en"]["userprofile-slct-label"] = "User profile";
    languages["en"]["email-text-label"] = "Email";
    languages["en"]["change-password"] = "Change password";
    languages["en"]["old-password-text-label"] = "Old password";
    languages["en"]["lbl-new-password"] = "New password";
    languages["en"]["confirm-password-text-label"] = "Confirm password";
    languages["en"]["wf-start"] = "Start";
    languages["en"]["wf-pause"] = "Suspend";
    languages["en"]["wf-resume"] = "Resume";
    languages["en"]["wf-stop"] = "Stop";
    languages["en"]["wf-approve"] = "Approve";
    languages["en"]["wf-reject"] = "Reject";
    languages["en"]["op-not-supported"] = "This operation is not supported.";
    languages["en"]["job-part-1"] = "The job ";
    languages["en"]["job-approved"] = " was approved.";
    languages["en"]["job-rejected"] = " was rejected.";
    languages["en"]["workflows-server-error"] = "An error occurred while retrieving workflows. Check that Wexflow server is running correctly."
    languages["en"]["job-approved-error-part-1"] = "An error occurred while approving the job ";
    languages["en"]["job-rejected-error-part-1"] = "An error occurred while rejecting the job ";
    languages["en"]["job-approved-error-part-2"] = " of the workflow ";
    languages["en"]["th-wf-id"] = "Id";
    languages["en"]["th-wf-n"] = "Name";
    languages["en"]["th-wf-lt"] = "LaunchType";
    languages["en"]["th-wf-e"] = "Enabled";
    languages["en"]["th-wf-a"] = "Approval";
    languages["en"]["th-wf-d"] = "Description";
    languages["en"]["th-job-id"] = "Job Id";
    languages["en"]["th-job-startedOn"] = "Started on";
    languages["en"]["browse"] = "Browse";
    languages["en"]["diagram"] = "Diagram";
    languages["en"]["graph"] = "Graph";
    languages["en"]["json"] = "JSON";
    languages["en"]["xml"] = "XML";
    languages["en"]["export"] = "Export";
    languages["en"]["import"] = "Import";
    languages["en"]["newworkflow"] = "New workflow";
    languages["en"]["searchtasks"] = "Search tasks";
    languages["en"]["task-id"] = "Id";
    languages["en"]["task-desc"] = "Description";
    languages["en"]["task-enabled"] = "Enabled";
    languages["en"]["btn-new-setting"] = "New setting";
    languages["en"]["wf-remove-setting"] = "Delete";
    languages["en"]["task-doc"] = "Open task documentation";
    languages["en"]["task-settings"] = "Task settings";
    languages["en"]["wf-settings-label"] = "Workflow settings";
    languages["en"]["savehelp"] = "Use Ctrl+S to save.";
    languages["en"]["wfid-label"] = "Id";
    languages["en"]["wfname-label"] = "Name";
    languages["en"]["wfdesc-label"] = "Description";
    languages["en"]["wflaunchtype-label"] = "LaunchType";
    languages["en"]["wfperiod-label"] = "Period";
    languages["en"]["wfcronexp-label"] = "Cron expression";
    languages["en"]["wfenabled-label"] = "Enabled";
    languages["en"]["wfapproval-label"] = "Approval";
    languages["en"]["wfenablepj-label"] = "Enable parallel jobs";
    languages["en"]["wf-local-vars-label"] = "Local variables";
    languages["en"]["wf-add-var"] = "New variable";
    languages["en"]["removeblock"] = "Delete tasks";
    languages["en"]["removeworkflow"] = "Delete workflow";
    languages["en"]["wf-remove-var"] = "Delete";
    languages["en"]["confirm-delete-tasks"] = "Are you sure you want to delete all the tasks?";
    languages["en"]["confirm-delete-workflow"] = "Are you sure you want to delete this workflow?";
    languages["en"]["confirm-delete-setting"] = "Are you sure you want to remove this setting?";
    languages["en"]["confirm-delete-task"] = "Are you sure you want to delete this task?";
    languages["en"]["confirm-cron"] = "The cron expression format is not valid.\nPlease read the documentation.";
    languages["en"]["confirm-delete-var"] = "Are you sure you want to delete this variable?";
    languages["en"]["confirm-delete-workflows"] = "Are you sure you want to delete selected workflows?";
    languages["en"]["toast-task-names-error"] = "An error occurred while retrieving task names.";
    languages["en"]["toast-workflow-id-error"] = "An error occurred while getting a new workflow id.";
    languages["en"]["toast-workflow-deleted"] = "Workflow deleted with success.";
    languages["en"]["toast-workflow-delete-error"] = "An error occurred while deleting the workflow.";
    languages["en"]["toast-settings-error"] = "An error occurred while retrieving settings.";
    languages["en"]["toast-save-workflow-diag"] = "Workflow saved and loaded successfully from diagram view.";
    languages["en"]["toast-save-workflow-diag-error"] = "An error occurred while saving the workflow from diagram view.";
    languages["en"]["toast-workflow-name"] = "Enter a name for this workflow.";
    languages["en"]["toast-workflow-launchType"] = "Select a launch type for this workflow.";
    languages["en"]["toast-workflow-period"] = "Enter a period for this workflow.";
    languages["en"]["toast-workflow-cron"] = "Enter a cron expression for this workflow.";
    languages["en"]["toast-workflow-period-error"] = "The period format is not valid. The valid format is: dd.hh:mm:ss";
    languages["en"]["toast-workflow-id"] = "The workflow id is already in use. Enter another one.";
    languages["en"]["toast-workflow-id-error"] = "Enter a valid workflow id.";
    languages["en"]["toast-save-workflow-json"] = "Workflow saved and loaded successfully from JSON view.";
    languages["en"]["toast-save-workflow-json-error"] = "An error occurred while saving the workflow from JSON view.";
    languages["en"]["toast-save-workflow-xml"] = "Workflow saved and loaded successfully from XML view.";
    languages["en"]["toast-save-workflow-xml-error"] = "An error occurred while saving the workflow from XML view.";
    languages["en"]["toast-graph-error"] = "An error occurred while retrieving the graph.";
    languages["en"]["toast-graph-save-error"] = "You must save the workflow to view the graph.";
    languages["en"]["toast-workflows-deleted"] = "Workflows deleted with success.";
    languages["en"]["toast-workflows-delete-error"] = "An error occurred while deleting workflows.";
    languages["en"]["toast-workflows-delete-info"] = "Select workflows to delete.";
    languages["en"]["toast-open-workflow-info"] = "Choose a workflow to open.";
    languages["en"]["toast-upload-error"] = "An error occurred while uploading the file: ";
    languages["en"]["toast-upload-success"] = " loaded with success.";
    languages["en"]["toast-upload-not-valid"] = " is not valid.";
    languages["en"]["wf-open"] = "Open";
    languages["en"]["wfs-delete"] = "Delete";
    languages["en"]["open-wfs-msg"] = "Use Ctrl+O to open this window.";
    languages["en"]["search-workflows"] = "Search workflows";
    languages["en"]["toast-user-deleted"] = "The user was deleted with success.";
    languages["en"]["toast-user-delete-error"] = "An error occurred while deleting the user.";
    languages["en"]["toast-username"] = "Type a username.";
    languages["en"]["toast-userprofile"] = "Choose a user profile for this user.";
    languages["en"]["toast-password"] = "Type a password.";
    languages["en"]["toast-password-error"] = "Passwords don't match.";
    languages["en"]["toast-email-error"] = "Enter a valid email address.";
    languages["en"]["toast-user-created"] = "The user was created with success.";
    languages["en"]["toast-user-create-error"] = "An error occurred while creating the user.";
    languages["en"]["toast-username-exists"] = "A user with this name already exists. Type another username.";
    languages["en"]["toast-password-incorrect"] = "The password is incorrect.";
    languages["en"]["toast-old-password-incorrect"] = "The old password is not valid.";
    languages["en"]["toast-new-password-error"] = "New passwords don't match.";
    languages["en"]["toast-new-password"] = "Enter a new password.";
    languages["en"]["toast-user-updated"] = "The user was updated with success.";
    languages["en"]["toast-user-update-error"] = "An error occurred while updating the user.";
    languages["en"]["confirm-user-delete"] = "Are you sure you want to delete this user?";
    languages["en"]["lnk-records"] = "Records";
    languages["en"]["lnk-approval"] = "Approvals";
    languages["en"]["search-notifications"] = "Search notifications";
    languages["en"]["btn-delete-notification"] = "Delete";
    languages["en"]["btn-mark-as-unread"] = "Mark as unread";
    languages["en"]["btn-mark-as-read"] = "Mark as read";
    languages["en"]["th-assigned-by"] = "Assigned by";
    languages["en"]["th-assigned-on"] = "Assigned on";
    languages["en"]["th-message"] = "Message";
    languages["en"]["toast-select-notifications"] = "Select notifications to delete.";
    languages["en"]["confirm-delete-notification"] = "Are you sure you want to delete this notification?";
    languages["en"]["confirm-delete-notifications"] = "Are you sure you want to delete these notifications?";
    languages["en"]["search-records"] = "Search records";
    languages["en"]["btn-delete-record"] = "Delete";
    languages["en"]["btn-new-record"] = "New record";
    languages["en"]["record-information"] = "Record information";
    languages["en"]["edit-record-td-id"] = "Id";
    languages["en"]["edit-record-td-name"] = "Name";
    languages["en"]["edit-record-td-description"] = "Description";
    languages["en"]["edit-record-td-approved"] = "Approved";
    languages["en"]["edit-record-td-start-date"] = "Start date";
    languages["en"]["edit-record-td-end-date"] = "End date";
    languages["en"]["edit-record-td-comments"] = "Comments";
    languages["en"]["edit-record-td-manager-comments"] = "Manager comments";
    languages["en"]["edit-record-td-created-by"] = "Created by";
    languages["en"]["edit-record-td-created-on"] = "Created on";
    languages["en"]["edit-record-td-modified-by"] = "Modified by";
    languages["en"]["edit-record-td-modified-on"] = "Modified on";
    languages["en"]["edit-record-td-assigned-to"] = "Assigned to";
    languages["en"]["edit-record-td-assigned-on"] = "Assigned on";
    languages["en"]["edit-record-td-versions"] = "Versions";
    languages["en"]["optional"] = " (Optional)";
    languages["en"]["btn-upload-version"] = "Upload";
    languages["en"]["delete-version"] = "Delete";
    languages["en"]["record-save"] = "Save";
    languages["en"]["record-cancel"] = "Cancel";
    languages["en"]["record-delete"] = "Delete";
    languages["en"]["latest-version"] = "Latest version";
    languages["en"]["uploading"] = "Uploading...";
    languages["en"]["toast-version-file-deleted"] = "Version file deleted successfully.";
    languages["en"]["toast-version-file-delete-error"] = "An error occured while deleting the version file.";
    languages["en"]["toast-approvers-notified"] = "The approvers were notified by this modification.";
    languages["en"]["toast-approvers-notify-error"] = "An error occured while notifying the approvers of the record.";
    languages["en"]["toast-assigned-to-notified"] = "The user assigned to the record was notified by this modification.";
    languages["en"]["toast-assigned-to-notify-error"] = "An error occured while notifying the user assigned to of the record.";
    languages["en"]["toast-record-saved"] = "Record saved successfully.";
    languages["en"]["toast-record-save-error"] = "An error occured while saving the record.";
    languages["en"]["toast-modifications-canceled"] = "Modifications canceled successfully.";
    languages["en"]["toast-modifications-cancel-error"] = "An error occurred while canceling modifications.";
    languages["en"]["toast-select-records"] = "Select records to delete.";
    languages["en"]["toast-record-name"] = "Enter a name for this record.";
    languages["en"]["confirm-delete-record"] = "Are you sure you want to delete this record?";
    languages["en"]["confirm-delete-records"] = "Are you sure you want to delete these records?";
    languages["en"]["record-name"] = "Name";
    languages["en"]["record-approved"] = "Approved";
    languages["en"]["record-start-date"] = "Start date";
    languages["en"]["record-end-date"] = "End date";
    languages["en"]["record-assigned-to"] = "Assigned to";
    languages["en"]["record-assigned-on"] = "Assigned on";
    languages["en"]["edit-record-td-approvers"] = "Approvers";
    languages["en"]["th-approved-by"] = "Approved by";
    languages["en"]["th-approved"] = "Approved";
    languages["en"]["th-approved-on"] = "Approved on";

    // 
    // fr
    //
    languages["fr"]["language"] = "Langue";
    languages["fr"]["help"] = "Aide";
    languages["fr"]["about"] = "À propos";
    languages["fr"]["username"] = "Utilisateur";
    languages["fr"]["password"] = "Mot de passe";
    languages["fr"]["forgot-password"] = "Mot de passe oublié ?";
    languages["fr"]["login"] = "Se connecter";
    languages["fr"]["valid-username"] = "Entrez un nom d'utilisateur et un mot de passe valides.";
    languages["fr"]["wrong-credentials"] = "Paramètres de connexion incorrects.";
    languages["fr"]["wrong-password"] = "Mot de passe incorrect.";
    languages["fr"]["submit"] = "Soumettre";
    languages["fr"]["enter-username"] = "Enterez un nom d'utilisateur.";
    languages["fr"]["fp-error"] = "Une erreur est survenue lors de l'envoi de l'Email.";
    languages["fr"]["fp-success"] = "Un Email avec un nouveau password a été envoyé à : ";
    languages["fr"]["lnk-dashboard"] = "Tableau de bord";
    languages["fr"]["lnk-manager"] = "Manager";
    languages["fr"]["lnk-designer"] = "Concepteur";
    languages["fr"]["lnk-history"] = "Historique";
    languages["fr"]["lnk-users"] = "Utilisateurs";
    languages["fr"]["lnk-profiles"] = "Profiles";
    languages["fr"]["spn-logout"] = "Se déconnecter";
    languages["fr"]["status-pending-label"] = "En attente";
    languages["fr"]["status-running-label"] = "En cours";
    languages["fr"]["status-done-label"] = "Terminé";
    languages["fr"]["status-failed-label"] = "Échoué";
    languages["fr"]["status-warning-label"] = "Avertissement";
    languages["fr"]["status-disapproved-label"] = "Rejeté";
    languages["fr"]["status-stopped-label"] = "Arrêté";
    languages["fr"]["lbl-show"] = "Monter";
    languages["fr"]["lbl-entries"] = "entrées";
    languages["fr"]["spn-entries-count-label"] = "Nombre d'entrées : ";
    languages["fr"]["lbl-from"] = "de";
    languages["fr"]["lbl-to"] = "à";
    languages["fr"]["btn-search"] = "Rechercher";
    languages["fr"]["new-user-action"] = "Nouvel utilisateur";
    languages["fr"]["save-action"] = "Sauvegarder";
    languages["fr"]["delete-action"] = "Supprimer";
    languages["fr"]["tr-createdOn-label"] = "Créé le";
    languages["fr"]["tr-modifiedOn-label"] = "Modifié le";
    languages["fr"]["userprofile-slct-label"] = "Profile";
    languages["fr"]["email-text-label"] = "Email";
    languages["fr"]["change-password"] = "Changer le mot de passe";
    languages["fr"]["old-password-text-label"] = "Ancien mot de passe";
    languages["fr"]["lbl-new-password"] = "Nouveau mot de passe";
    languages["fr"]["confirm-password-text-label"] = "Confirmer le mot de passe";
    languages["fr"]["wf-start"] = "Démarrer";
    languages["fr"]["wf-pause"] = "Pause";
    languages["fr"]["wf-resume"] = "Reprendre";
    languages["fr"]["wf-stop"] = "Arrêter";
    languages["fr"]["wf-approve"] = "Approuver";
    languages["fr"]["wf-reject"] = "Rejeter";
    languages["fr"]["op-not-supported"] = "Cette opération n'est pas supportée.";
    languages["fr"]["job-part-1"] = "Le job ";
    languages["fr"]["job-approved"] = " a été approuvé.";
    languages["fr"]["job-rejected"] = " a été rejeté.";
    languages["fr"]["workflows-server-error"] = "Une erreur s'est produite lors de la récupération de workflows. Vérifiez que le serveur tourne."
    languages["fr"]["job-approved-error-part-1"] = "Une erreur s'est produite lors de l'approbation du job ";
    languages["fr"]["job-rejected-error-part-1"] = "Une erreur s'est produite lors du rejet du job ";
    languages["fr"]["job-approved-error-part-2"] = " du workflow ";
    languages["fr"]["th-wf-id"] = "Id";
    languages["fr"]["th-wf-n"] = "Nom";
    languages["fr"]["th-wf-lt"] = "LaunchType";
    languages["fr"]["th-wf-e"] = "Activé";
    languages["fr"]["th-wf-a"] = "Approbation";
    languages["fr"]["th-wf-d"] = "Description";
    languages["fr"]["th-job-id"] = "Job Id";
    languages["fr"]["th-job-startedOn"] = "Démarré le";
    languages["fr"]["browse"] = "Parcourir";
    languages["fr"]["diagram"] = "Diagramme";
    languages["fr"]["graph"] = "Graphe";
    languages["fr"]["json"] = "JSON";
    languages["fr"]["xml"] = "XML";
    languages["fr"]["export"] = "Exporter";
    languages["fr"]["import"] = "Importer";
    languages["fr"]["newworkflow"] = "Nouveau Workflow";
    languages["fr"]["searchtasks"] = "Rechercher des tâches";
    languages["fr"]["task-id"] = "Id";
    languages["fr"]["task-desc"] = "Description";
    languages["fr"]["task-enabled"] = "Activée";
    languages["fr"]["btn-new-setting"] = "Nouveau paramètre";
    languages["fr"]["wf-remove-setting"] = "Supprimer";
    languages["fr"]["task-doc"] = "Ouvrir la documentation de la tâche";
    languages["fr"]["task-settings"] = "Paramètres de la tâche";
    languages["fr"]["wf-settings-label"] = "Paramètres";
    languages["fr"]["savehelp"] = "Ctrl+S pour sauvegarder.";
    languages["fr"]["wfid-label"] = "Id";
    languages["fr"]["wfname-label"] = "Nom";
    languages["fr"]["wfdesc-label"] = "Description";
    languages["fr"]["wflaunchtype-label"] = "LaunchType";
    languages["fr"]["wfperiod-label"] = "Période";
    languages["fr"]["wfcronexp-label"] = "Expression cron";
    languages["fr"]["wfenabled-label"] = "Activé";
    languages["fr"]["wfapproval-label"] = "Approbation";
    languages["fr"]["wfenablepj-label"] = "Activer les jobs parallels";
    languages["fr"]["wf-local-vars-label"] = "Variables locales";
    languages["fr"]["wf-add-var"] = "Nouvelle variable";
    languages["fr"]["removeblock"] = "Supprimer les tâches";
    languages["fr"]["removeworkflow"] = "Supprimer le workflow";
    languages["fr"]["wf-remove-var"] = "Supprimer";
    languages["fr"]["confirm-delete-tasks"] = "Êtes-vous sûr de vouloir supprimer toutes les tâches ?";
    languages["fr"]["confirm-delete-workflow"] = "Êtes-vous sûr de vouloir supprimer ce workflow ?";
    languages["fr"]["confirm-delete-setting"] = "Êtes-vous sûr de vouloir supprimer ce paramètre ?";
    languages["fr"]["confirm-delete-task"] = "Êtes-vous sûr de vouloir supprimer cette tâche ?";
    languages["fr"]["confirm-cron"] = "L'expression cron n'est pas valide.\nConsulter la documentation?";
    languages["fr"]["confirm-delete-var"] = "Êtes-vous sûr de vouloir supprimer cette variable ?";
    languages["fr"]["confirm-delete-workflows"] = "Êtes-vous sûr de vouloir supprimer les workflows sélectionnés?";
    languages["fr"]["toast-task-names-error"] = "Une erreur s'est produite lors de la récupération des tâches.";
    languages["fr"]["toast-workflow-id-error"] = "Une erreur s'est produite lors de la récupération d'un nouveau workflow id.";
    languages["fr"]["toast-workflow-deleted"] = "Workflow supprimé avec succès.";
    languages["fr"]["toast-workflow-delete-error"] = "Une erreur s'est prosuite lors de la suppression du workflow.";
    languages["fr"]["toast-settings-error"] = "Une erreur s'est produite lors de la récupération des paramètres.";
    languages["fr"]["toast-save-workflow-diag"] = "Workflow sauvegardé et chargé avec succès depuis la vue diagramme.";
    languages["fr"]["toast-save-workflow-diag-error"] = "Une erreur s'est produite lors de la sauvegarde du workflow depuis la vue diagramme.";
    languages["fr"]["toast-workflow-name"] = "Entrez un nom pour ce workflow.";
    languages["fr"]["toast-workflow-launchType"] = "Sélectionnez un launchType pour ce workflow.";
    languages["fr"]["toast-workflow-period"] = "Entrez une période pour ce workflow.";
    languages["fr"]["toast-workflow-cron"] = "Entrez une expression cron pour ce workflow.";
    languages["fr"]["toast-workflow-period-error"] = "La période n'est pas valide. Le format valide est : dd.hh:mm:ss";
    languages["fr"]["toast-workflow-id"] = "Le workflow id est déjà utilisé. Entrez-en un nouveau.";
    languages["fr"]["toast-workflow-id-error"] = "Entrez un workflow id valide.";
    languages["fr"]["toast-save-workflow-json"] = "Workflow sauvegardé et chargé avec succès depuis la vue  JSON.";
    languages["fr"]["toast-save-workflow-json-error"] = "Une erreur s'est produite lors de la sauvegarde du workflow depuis la vue JSON.";
    languages["fr"]["toast-save-workflow-xml"] = "Workflow sauvegardé et chargé avec succès depuis la vue  XML.";
    languages["fr"]["toast-save-workflow-xml-error"] = "Une erreur s'est produite lors de la sauvegarde du workflow depuis la vue XML.";
    languages["fr"]["toast-graph-error"] = "Une erreur s'est produite lors de la récupération du graphe.";
    languages["fr"]["toast-graph-save-error"] = "Vous devez enregistrer le workflow pour voir le graphe.";
    languages["fr"]["toast-workflows-deleted"] = "Workflows supprimés avec succès.";
    languages["fr"]["toast-workflows-delete-error"] = "Une erreur s'est produite lors de la suppression des workflows.";
    languages["fr"]["toast-workflows-delete-info"] = "Sélectionnez des workflows à supprimer.";
    languages["fr"]["toast-open-workflow-info"] = "Choissez un workflow à ouvrir.";
    languages["fr"]["toast-upload-error"] = "Une erreur s'est produite lors de l'upload du fichier : ";
    languages["fr"]["toast-upload-success"] = " chargé avec succès.";
    languages["fr"]["toast-upload-not-valid"] = " n'est pas valide.";
    languages["fr"]["wf-open"] = "Ouvrir";
    languages["fr"]["wfs-delete"] = "Supprimer";
    languages["fr"]["open-wfs-msg"] = "Ctrl+O pour ouvrir cette fenêtre.";
    languages["fr"]["search-workflows"] = "Rechercher de workflows";
    languages["fr"]["toast-user-deleted"] = "L'utilisateur a été supprimé avec succès.";
    languages["fr"]["toast-user-delete-error"] = "Une erreur s'est produite lors de la suppression de l'utilisateur.";
    languages["fr"]["toast-username"] = "Entrez un nom d'utilisateur.";
    languages["fr"]["toast-userprofile"] = "Entrez un profil pour cet utilisateur.";
    languages["fr"]["toast-password"] = "Entrez un mot de passe.";
    languages["fr"]["toast-password-error"] = "Les mots de passes ne correspondent pas.";
    languages["fr"]["toast-email-error"] = "Entrez un adresse Email valide.";
    languages["fr"]["toast-user-created"] = "L'utilisateur a été créé avec succès.";
    languages["fr"]["toast-user-create-error"] = "Une erreur s'est produite lors de la création de l'utilisateur.";
    languages["fr"]["toast-username-exists"] = "Un utilisateur avec le même nom existe déjà. Entrez un nouveau nom d'utilisateur.";
    languages["fr"]["toast-password-incorrect"] = "Le mot de passe est incorrect.";
    languages["fr"]["toast-old-password-incorrect"] = "L'ancien mot de passe n'est pas valide.";
    languages["fr"]["toast-new-password-error"] = "Les nouveaux mots de passes ne correspondent pas.";
    languages["fr"]["toast-new-password"] = "Entrez un nouveau mot de passe.";
    languages["fr"]["toast-user-updated"] = "L'utilisateur a été mis à jour avec succès.";
    languages["fr"]["toast-user-update-error"] = "Une erreur s'est produite lors de la mise à jour de l'utilisateur.";
    languages["fr"]["confirm-user-delete"] = "Êtes-vous sûr de vouloir supprimer cet utilisateur ?";
    languages["fr"]["lnk-records"] = "Records";
    languages["fr"]["lnk-approval"] = "Approbations";
    languages["fr"]["search-notifications"] = "Rechercher les notifications";
    languages["fr"]["btn-delete-notification"] = "Supprimer";
    languages["fr"]["btn-mark-as-unread"] = "Marquer comme non lu";
    languages["fr"]["btn-mark-as-read"] = "Marquer comme lu";
    languages["fr"]["th-assigned-by"] = "Assignée par";
    languages["fr"]["th-assigned-on"] = "Assignée le";
    languages["fr"]["th-message"] = "Message";
    languages["fr"]["toast-select-notifications"] = "Veuillez sélectionner des notifications à supprimer.";
    languages["fr"]["confirm-delete-notification"] = "Êtes-vous sûr de vouloir supprimer cette notification ?";
    languages["fr"]["confirm-delete-notifications"] = "Êtes-vous sûr de vouloir supprimer ces notifications ?";
    languages["fr"]["search-records"] = "Rechercher les records";
    languages["fr"]["btn-delete-record"] = "Supprimer";
    languages["fr"]["btn-new-record"] = "Nouveau record";
    languages["fr"]["record-information"] = "Informations sur le record";
    languages["fr"]["edit-record-td-id"] = "Id";
    languages["fr"]["edit-record-td-name"] = "Nom";
    languages["fr"]["edit-record-td-description"] = "Description";
    languages["fr"]["edit-record-td-approved"] = "Approuvé";
    languages["fr"]["edit-record-td-start-date"] = "Date de début";
    languages["fr"]["edit-record-td-end-date"] = "Date de fin";
    languages["fr"]["edit-record-td-comments"] = "Commentaires";
    languages["fr"]["edit-record-td-manager-comments"] = "Commentaires du manager";
    languages["fr"]["edit-record-td-created-by"] = "Créé par";
    languages["fr"]["edit-record-td-created-on"] = "Créé le";
    languages["fr"]["edit-record-td-modified-by"] = "Modifié par";
    languages["fr"]["edit-record-td-modified-on"] = "Modifié le";
    languages["fr"]["edit-record-td-assigned-to"] = "Assigné à";
    languages["fr"]["edit-record-td-assigned-on"] = "Assigné le";
    languages["fr"]["edit-record-td-versions"] = "Versions";
    languages["fr"]["optional"] = " (Optionnel)";
    languages["fr"]["btn-upload-version"] = "Uploader";
    languages["fr"]["delete-version"] = "Supprimer";
    languages["fr"]["record-save"] = "Sauvegarder";
    languages["fr"]["record-cancel"] = "Annuler";
    languages["fr"]["record-delete"] = "Supprimer";
    languages["fr"]["latest-version"] = "Dernière version";
    languages["fr"]["uploading"] = "Upload en cours...";
    languages["fr"]["toast-version-file-deleted"] = "Fichier supprimé avec succès.";
    languages["fr"]["toast-version-file-delete-error"] = "Une erreur a eu lieu lors de la suppression du fichier.";
    languages["fr"]["toast-approvers-notified"] = "Les approbateurs ont été notifiés de cette modification.";
    languages["fr"]["toast-approvers-notify-error"] = "Une erreur a eu lieu lors de la notification des approbateurs.";
    languages["fr"]["toast-assigned-to-notified"] = "L'utilisateur assigné à ce record a été notifié de cette modification.";
    languages["fr"]["toast-assigned-to-notify-error"] = "Une erreur a eu lieu lors de la notification de l'utilisateur assigné à ce record.";
    languages["fr"]["toast-record-saved"] = "Record sauvegardé avec succès.";
    languages["fr"]["toast-record-save-error"] = "Une erreur a eu lieu lors de la sauvegarde du record.";
    languages["fr"]["toast-modifications-canceled"] = "Modifications annulées avec succès.";
    languages["fr"]["toast-modifications-cancel-error"] = "une erreur a eu lieu lors de l'annulation des modifications.";
    languages["fr"]["toast-select-records"] = "Veuillez sélectionner les records à supprimer.";
    languages["fr"]["toast-record-name"] = "Entrer un nom pour ce record.";
    languages["fr"]["confirm-delete-record"] = "Êtes-vous sûr de vouloir supprimer ce record ?";
    languages["fr"]["confirm-delete-records"] = "Êtes-vous sûr de vouloir supprimer ces records ?";
    languages["fr"]["record-name"] = "Nom";
    languages["fr"]["record-approved"] = "Approuvé";
    languages["fr"]["record-start-date"] = "Date de début";
    languages["fr"]["record-end-date"] = "Date de fin";
    languages["fr"]["record-assigned-to"] = "Assigné à";
    languages["fr"]["record-assigned-on"] = "Assigné le";
    languages["fr"]["edit-record-td-approvers"] = "Approuveurs";
    languages["fr"]["th-approved-by"] = "Approuvé par";
    languages["fr"]["th-approved"] = "Approuvé";
    languages["fr"]["th-approved-on"] = "Approuvé le";

    //
    // da
    //
    languages["da"]["language"] = "Sprog";
    languages["da"]["help"] = "Hjælp";
    languages["da"]["about"] = "Om";
    languages["da"]["username"] = "Brugernavn";
    languages["da"]["password"] = "Adgangskode";
    languages["da"]["forgot-password"] = "Glemt adgangskode?";
    languages["da"]["login"] = "Log ind";
    languages["da"]["valid-username"] = "Indtast et gyldigt brugernavn og adgangskode.";
    languages["da"]["wrong-credentials"] = "Forkert legitimationsoplysninger.";
    languages["da"]["wrong-password"] = "Adgangskoden er forkert.";
    languages["da"]["submit"] = "Indsend";
    languages["da"]["enter-username"] = "Indtast et brugernavn.";
    languages["da"]["fp-error"] = "Der opstod en fejl under afsendelsen af ​​e-mailen.";
    languages["da"]["fp-success"] = "En e-mail med en ny adgangskode blev sendt til:";
    languages["da"]["lnk-dashboard"] = "Oversigt";
    languages["da"]["lnk-manager"] = "Kontrol";
    languages["da"]["lnk-designer"] = "Designer";
    languages["da"]["lnk-history"] = "Log";
    languages["da"]["lnk-users"] = "Brugere";
    languages["da"]["lnk-profiles"] = "Profiler";
    languages["da"]["spn-logout"] = "Log ud";
    languages["da"]["status-pending-label"] = "Afventer";
    languages["da"]["status-running-label"] = "Kører";
    languages["da"]["status-done-label"] = "Udført";
    languages["da"]["status-failed-label"] = "Mislykkedes";
    languages["da"]["status-warning-label"] = "Advarsel";
    languages["da"]["status-disapproved-label"] = "Afvist";
    languages["da"]["status-stopped-label"] = "Stoppet";
    languages["da"]["lbl-show"] = "Vis";
    languages["da"]["lbl-entries"] = "poster";
    languages["da"]["spn-entries-count-label"] = "Samlede poster:";
    languages["da"]["lbl-from"] = "fra";
    languages["da"]["lbl-to"] = "til";
    languages["da"]["btn-search"] = "Søg";
    languages["da"]["new-user-action"] = "Ny bruger";
    languages["da"]["save-action"] = "Gem";
    languages["da"]["delete-action"] = "Slet";
    languages["da"]["tr-createdOn-label"] = "Oprettet den";
    languages["da"]["tr-modifiedOn-label"] = "Ændret på";
    languages["da"]["userprofile-slct-label"] = "Brugerprofil";
    languages["da"]["email-text-label"] = "E-mail";
    languages["da"]["change-password"] = "Skift adgangskode";
    languages["da"]["old-password-text-label"] = "Gammelt kodeord";
    languages["da"]["lbl-new-password"] = "Ny adgangskode";
    languages["da"]["confirm-password-text-label"] = "Bekræft adgangskode";
    languages["da"]["wf-start"] = "Start";
    languages["da"]["wf-pause"] = "Pause";
    languages["da"]["wf-resume"] = "Genoptag";
    languages["da"]["wf-stop"] = "Stop";
    languages["da"]["wf-approve"] = "Godkend";
    languages["da"]["wf-reject"] = "Afvis";
    languages["da"]["op-not-supported"] = "Denne handling understøttes ikke.";
    languages["da"]["job-part-1"] = "Jobbet";
    languages["da"]["job-approved"] = "blev godkendt.";
    languages["da"]["job-rejected"] = "blev afvist.";
    languages["da"]["workflows-server-error"] = "Der opstod en fejl under hentning af workflows. Kontroller, at Wexflow-server kører korrekt."
    languages["da"]["job-approved-error-part-1"] = "Der opstod en fejl under godkendelse af jobbet";
    languages["da"]["job-rejected-error-part-1"] = "En fejl opstod under afvisning af jobbet";
    languages["da"]["job-approved-error-part-2"] = "af opgavern";
    languages["da"]["th-wf-id"] = "Id";
    languages["da"]["th-wf-n"] = "Navn";
    languages["da"]["th-wf-lt"] = "Starttype";
    languages["da"]["th-wf-e"] = "Aktiveret";
    languages["da"]["th-wf-a"] = "Godkendelse";
    languages["da"]["th-wf-d"] = "Beskrivelse";
    languages["da"]["th-job-id"] = "Job-id";
    languages["da"]["th-job-startedOn"] = "Begyndt på";
    languages["da"]["browse"] = "Gennemse";
    languages["da"]["diagram"] = "Diagram";
    languages["da"]["graph"] = "Graf";
    languages["da"]["json"] = "JSON";
    languages["da"]["xml"] = "XML";
    languages["da"]["export"] = "Eksport";
    languages["da"]["import"] = "Import";
    languages["da"]["newworkflow"] = "Ny opgave";
    languages["da"]["searchtasks"] = "Søg opgaver";
    languages["da"]["task-id"] = "Id";
    languages["da"]["task-desc"] = "Beskrivelse";
    languages["da"]["task-enabled"] = "Aktiveret";
    languages["da"]["btn-new-setting"] = "Ny indstilling";
    languages["da"]["wf-remove-setting"] = "Slet";
    languages["da"]["task-doc"] = "Åben opgavedokumentation";
    languages["da"]["task-settings"] = "Opgaveindstillinger";
    languages["da"]["wf-settings-label"] = "Workflow-indstillinger";
    languages["da"]["savehelp"] = "Ctrl + S for at gemme opgaven.";
    languages["da"]["wfid-label"] = "Id";
    languages["da"]["wfname-label"] = "Navn";
    languages["da"]["wfdesc-label"] = "Beskrivelse";
    languages["da"]["wflaunchtype-label"] = "OpstartsType";
    languages["da"]["wfperiod-label"] = "Periode";
    languages["da"]["wfcronexp-label"] = "CRON-udtryk";
    languages["da"]["wfenabled-label"] = "Aktiveret";
    languages["da"]["wfapproval-label"] = " Godkendelse ";
    languages["da"]["wfenablepj-label"] = "Aktivér parallelle job";
    languages["da"]["wf-local-vars-label"] = "Lokale variabler";
    languages["da"]["wf-add-var"] = "Ny variabel";
    languages["da"]["removeblock"] = "Slet opgaver";
    languages["da"]["removeworkflow"] = "Slet opgave";
    languages["da"]["wf-remove-var"] = "Slet";
    languages["da"]["confirm-delete-tasks"] = "Er du sikker på, at du vil slette alle opgaver?";
    languages["da"]["confirm-delete-workflow"] = "Er du sikker på, at du vil slette denne opgave?";
    languages["da"]["confirm-delete-setting"] = "Er du sikker på, at du vil fjerne denne indstilling?";
    languages["da"]["confirm-delete-task"] = "Er du sikker på, at du vil slette denne opgave?";
    languages["da"]["confirm-cron"] = "CRON-udtrykformatet er ikke gyldigt. \nLæs dokumentationen?";
    languages["da"]["confirm-delete-var"] = "Er du sikker på, at du vil slette denne variabel?";
    languages["da"]["confirm-delete-workflows"] = "Er du sikker på, at du vil slette valgte opgaver?";
    languages["da"]["toast-task-names-error"] = "Der opstod en fejl under hentning af opgavenavne.";
    languages["da"]["toast-workflow-id-error"] = "Der opstod en fejl under hentning af et nyt workflow-id.";
    languages["da"]["toast-workflow-deleted"] = "Opgave blev slettet.";
    languages["da"]["toast-workflow-delete-error"] = "Der opstod en fejl under sletningen af ​​workflow.";
    languages["da"]["toast-settings-error"] = "Der opstod en fejl under hentning af indstillinger.";
    languages["da"]["toast-save-workflow-diag"] = "Arbejdsproces er gemt og indlæst med succes fra diagramvisning.";
    languages["da"]["toast-save-workflow-diag-error"] = "Der opstod en fejl under lagring af workflow fra diagramvisning.";
    languages["da"]["toast-workflow-name"] = "Indtast et navn til denne opgave.";
    languages["da"]["toast-workflow-launchType"] = "Vælg en starttype for denne opgave.";
    languages["da"]["toast-workflow-period"] = "Indtast en periode for denne opgave.";
    languages["da"]["toast-workflow-cron"] = "Indtast et cron-udtryk for denne opgave.";
    languages["da"]["toast-workflow-period-error"] = "Periodeformatet er ikke gyldigt. Det gyldige format er: dd.hh: mm: ss";
    languages["da"]["toast-workflow-id"] = "opgaves-idet er allerede i brug. Indtast et andet.";
    languages["da"]["toast-workflow-id-error"] = "Indtast et gyldigt workflow-id.";
    languages["da"]["toast-save-workflow-json"] = "Arbejdsproces er gemt og indlæst med succes fra JSON-visningen.";
    languages["da"]["toast-save-workflow-json-error"] = "Der opstod en fejl under lagring af workflow fra JSON-visningen.";
    languages["da"]["toast-save-workflow-xml"] = "Arbejdsproces er gemt og indlæst med succes fra XML-visning.";
    languages["da"]["toast-save-workflow-xml-error"] = "Der opstod en fejl under lagring af workflow fra XML-visning.";
    languages["da"]["toast-graph-error"] = "Der opstod en fejl under hentning af grafen.";
    languages["da"]["toast-graph-save-error"] = "Du skal gemme opgavern for at se grafen.";
    languages["da"]["toast-workflows-deleted"] = "opgaver er slettet med succes.";
    languages["da"]["toast-workflows-delete-error"] = "Der opstod en fejl under sletning af workflows.";
    languages["da"]["toast-workflows-delete-info"] = "Vælg opgaver, der skal slettes.";
    languages["da"]["toast-open-workflow-info"] = "Vælg en opgave, der skal åbnes.";
    languages["da"]["toast-upload-error"] = "Der opstod en fejl under upload af filen:";
    languages["da"]["toast-upload-success"] = "indlæst med succes.";
    languages["da"]["toast-upload-not-valid"] = "er ikke gyldig.";
    languages["da"]["wf-open"] = "Åben";
    languages["da"]["wfs-delete"] = "Slet";
    languages["da"]["open-wfs-msg"] = "Ctrl + O for at åbne dette vindue.";
    languages["da"]["search-workflows"] = "Søg i workflows";
    languages["da"]["toast-user-deleted"] = "Brugeren blev slettet med succes.";
    languages["da"]["toast-user-delete-error"] = "Der opstod en fejl under sletning af brugeren.";
    languages["da"]["toast-username"] = "Indtast et brugernavn.";
    languages["da"]["toast-userprofile"] = "Vælg en brugerprofil til denne bruger.";
    languages["da"]["toast-password"] = "Indtast en adgangskode.";
    languages["da"]["toast-password-error"] = "Adgangskoder stemmer ikke overens.";
    languages["da"]["toast-email-error"] = "Indtast en gyldig e-mail-adresse.";
    languages["da"]["toast-user-created"] = "Brugeren blev oprettet med succes.";
    languages["da"]["toast-user-create-error"] = "Der opstod en fejl under oprettelsen af ​​brugeren.";
    languages["da"]["toast-username-exists"] = "En bruger med dette navn findes allerede. Skriv et andet brugernavn.";
    languages["da"]["toast-password-incorrect"] = "Adgangskoden er forkert.";
    languages["da"]["toast-old-password-incorrect"] = "Den gamle adgangskode er ikke gyldig.";
    languages["da"]["toast-new-password-error"] = "Nye adgangskoder stemmer ikke overens.";
    languages["da"]["toast-new-password"] = "Indtast en ny adgangskode.";
    languages["da"]["toast-user-updated"] = "Brugeren blev opdateret med succes.";
    languages["da"]["toast-user-update-error"] = "Der opstod en fejl under opdateringen af brugeren.";
    languages["da"]["confirm-user-delete"] = "Er du sikker på, at du vil slette denne bruger?";
    languages["da"]["lnk-records"] = "Poster";
    languages["da"]["lnk-approval"] = "Godkendelse";
    languages["da"]["search-notifications"] = "Søg underretninger";
    languages["da"]["btn-delete-notification"] = "Slet";
    languages["da"]["btn-mark-as-unread"] = "Marker som ulæst";
    languages["da"]["btn-mark-as-read"] = "Marker som læst";
    languages["da"]["th-assigned-by"] = "Tildelt af";
    languages["da"]["th-assigned-on"] = "Tildelt på";
    languages["da"]["th-message"] = "Besked";
    languages["da"]["toast-select-notifications"] = "Vælg meddelelser, der skal slettes.";
    languages["da"]["confirm-delete-notification"] = "Er du sikker på, at du vil slette denne meddelelse?";
    languages["da"]["confirm-delete-notifications"] = "Er du sikker på, at du vil slette disse underretninger?";
    languages["da"]["search-records"] = "Søg i poster";
    languages["da"]["btn-delete-record"] = "Slet";
    languages["da"]["btn-new-record"] = "Ny post";
    languages["da"]["edit-record-td-id"] = "Id";
    languages["da"]["edit-record-td-name"] = "Navn";
    languages["da"]["edit-record-td-description"] = "Beskrivelse";
    languages["da"]["edit-record-td-approved"] = "Godkendt";
    languages["da"]["edit-record-td-start-date"] = "Startdato";
    languages["da"]["edit-record-td-end-date"] = "Slutdato";
    languages["da"]["edit-record-td-comments"] = "Kommentarer";
    languages["da"]["edit-record-td-manager-comments"] = "Godkender-kommentarer";
    languages["da"]["edit-record-td-created-by"] = "Oprettet af";
    languages["da"]["edit-record-td-created-on"] = "Oprettet den";
    languages["da"]["edit-record-td-modified-by"] = "Ændret af";
    languages["da"]["edit-record-td-modified-on"] = "Ændret på";
    languages["da"]["edit-record-td-assigned-to"] = "Tildelt til";
    languages["da"]["edit-record-td-assigned-on"] = "Tildelt på";
    languages["da"]["edit-record-td-versions"] = "Versioner";
    languages["da"]["optional"] = " (Valgfrit)";
    languages["da"]["btn-upload-version"] = "Upload";
    languages["da"]["delete-version"] = "Slet";
    languages["da"]["record-save"] = "Gem";
    languages["da"]["record-cancel"] = "Annuller";
    languages["da"]["record-delete"] = "Slet";
    languages["da"]["latest-version"] = "Seneste version";
    languages["da"]["uploading"] = "Upload ...";
    languages["da"]["toast-version-file-deleted"] = "Versionsfil er slettet med succes.";
    languages["da"]["toast-version-file-delete-error"] = "Der opstod en fejl under sletning af versionfilen.";
    languages["da"]["toast-approvers-notified"] = "Godkendere er blevet underrettet om denne ændring.";
    languages["da"]["toast-approvers-notify-error"] = "Der opstod en fejl under meddelelse af godkendere.";
    languages["da"]["toast-record-saved"] = "Optagelse gemt med succes.";
    languages["da"]["toast-record-save-error"] = "Der opstod en fejl under lagring af posten.";
    languages["da"]["toast-modifications-canceled"] = "Modifikationer annulleret med succes.";
    languages["da"]["toast-modifications-cancel-error"] = "Der opstod en fejl under annullering af ændringer.";
    languages["da"]["toast-select-records"] = "Vælg poster, der skal slettes.";
    languages["da"]["toast-record-name"] = "Indtast et navn til denne post.";
    languages["da"]["confirm-delete-record"] = "Er du sikker på, at du vil slette denne post?";
    languages["da"]["confirm-delete-records"] = "Er du sikker på, at du vil slette disse poster?";
    languages["da"]["record-name"] = "Navn";
    languages["da"]["record-approved"] = "Godkendt";
    languages["da"]["record-start-date"] = "Startdato";
    languages["da"]["record-end-date"] = "Slutdato";
    languages["da"]["record-assigned-to"] = "Tildelt til";
    languages["da"]["record-assigned-on"] = "Tildelt på";
    languages["da"]["record-information"] = "Post information";
    languages["da"]["toast-assigned-to-notified"] = "Brugern tildelt denne post er blevet informeret om rettelsen.";
    languages["da"]["toast-assigned-to-notify-error"] = "Der opstod en fejl under under informeringen af tildeleren til denne post.";
    languages["da"]["edit-record-td-approvers"] = "Godkendere";
    languages["da"]["th-approved-by"] = "Godkendt af";
    languages["da"]["th-approved"] = "Godkendt";
    languages["da"]["th-approved-on"] = "Godkendt på";

    return {
        codes: codes,
        languages: languages
    };

})();
